//
//  MyNavigationController.m
//  OCDome
//
//  Created by 李含文 on 2020/7/30.
//  Copyright © 2020 李含文. All rights reserved.
//

#import "MyNavigationController.h"

@interface MyNavigationController ()

@end

@implementation MyNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
//    [self setNavigationBar];
}
//- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{
//    /* 自动显示和隐藏tabbar */
//    if (self.viewControllers.count > 0) {
//        if (self.viewControllers.count == 1) {
//            viewController.hidesBottomBarWhenPushed = YES;
//        }
//    }else {
//        viewController.hidesBottomBarWhenPushed = NO;
//    }
//    // 取消导航条返回按钮的文字
//    UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithTitle:@" " style:UIBarButtonItemStylePlain target:self action:nil];
//    viewController.navigationItem.backBarButtonItem = item;
//
//    [super pushViewController:viewController animated:animated];
//}

//- (void)setNavigationBar {
//    UINavigationBar *navBar = [UINavigationBar appearance];
//    
//    navBar.translucent = NO;//不透明
//    
//    // 设置导航栏背景图片
////    [navBar setBackgroundImage:[UIImage cc_imageWithColor:UIColor.whiteColor size:CCScreenSize()] forBarMetrics:UIBarMetricsDefault];
//    // 取消黑线
//    navBar.shadowImage = [UIImage new];
//    // 标题-文字颜色
//    NSDictionary *dict = @{NSForegroundColorAttributeName:UIColor.blackColor, NSFontAttributeName:[UIFont boldSystemFontOfSize:18]};
//    navBar.titleTextAttributes = dict;
//    // 导航条-背景颜色
//    navBar.barTintColor = UIColor.whiteColor;
//    // 导航条-返回按钮颜色
//    navBar.tintColor = UIColor.blackColor;
//}
@end
